package com.webex.hydra.selenium;

import com.webex.ta.hydra.plugin.HydraPlugin;
import com.webex.ta.hydra.util.HydraUtils;

import java.io.File;
import java.io.IOException;

/**
 * Created by Cisco WebEx.
 * User: vegaz
 * Date: 2010-10-26
 * Time: 14:39:32
 */
public class SeleniumPlugin implements HydraPlugin {
    private static Process seleniumServer;
    public void activate() {
//        ProcessBuilder pb = new ProcessBuilder(HydraUtils.getHydraPluginPath() + File.separator +
//                "Selenium" + File.separator + "selenium-server.bat");
//        pb.directory(new File(HydraUtils.getHydraPluginPath() + File.separator + "Selenium"));
//        pb.redirectErrorStream(true);
//        try {
//            seleniumServer = pb.start();
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
        System.out.println("SELENIUM PLUGIN ACTIVATE");
    }

    public void deactivate() {
//        seleniumServer.destroy();
        System.out.println("SELENIUM PLUGIN DEACTIVATE");
    }
}
